package com.film.financial.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.film.financial.mapper.ReimbursementMapper;
import com.film.financial.domain.Reimbursement;
import com.film.financial.service.IReimbursementService;

/**
 * 费用报销Service业务层处理
 * 
 * *@author fy
 * @date 2025-02-17
 */
@Service
public class ReimbursementServiceImpl implements IReimbursementService 
{
    @Autowired
    private ReimbursementMapper reimbursementMapper;

    /**
     * 查询费用报销
     * 
     * @param rId 费用报销主键
     * @return 费用报销
     */
    @Override
    public Reimbursement selectReimbursementByRId(Long rId)
    {
        return reimbursementMapper.selectReimbursementByRId(rId);
    }

    /**
     * 查询费用报销列表
     * 
     * @param reimbursement 费用报销
     * @return 费用报销
     */
    @Override
    public List<Reimbursement> selectReimbursementList(Reimbursement reimbursement)
    {
        return reimbursementMapper.selectReimbursementList(reimbursement);
    }

    /**
     * 新增费用报销
     * 
     * @param reimbursement 费用报销
     * @return 结果
     */
    @Override
    public int insertReimbursement(Reimbursement reimbursement)
    {
        return reimbursementMapper.insertReimbursement(reimbursement);
    }

    /**
     * 修改费用报销
     * 
     * @param reimbursement 费用报销
     * @return 结果
     */
    @Override
    public int updateReimbursement(Reimbursement reimbursement)
    {
        return reimbursementMapper.updateReimbursement(reimbursement);
    }

    /**
     * 批量删除费用报销
     * 
     * @param rIds 需要删除的费用报销主键
     * @return 结果
     */
    @Override
    public int deleteReimbursementByRIds(Long[] rIds)
    {
        return reimbursementMapper.deleteReimbursementByRIds(rIds);
    }

    /**
     * 删除费用报销信息
     * 
     * @param rId 费用报销主键
     * @return 结果
     */
    @Override
    public int deleteReimbursementByRId(Long rId)
    {
        return reimbursementMapper.deleteReimbursementByRId(rId);
    }
}
